package com.elibrary;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.actionbarsherlock.app.SherlockFragment;

/**
 * Created with IntelliJ IDEA.
 * User: Enkuso
 * Date: 1/18/13
 * Time: 2:27 PM
 * To change this template use File | Settings | File Templates.
 */
class CountingFragment extends SherlockFragment {

    int mNum;

    public CountingFragment(){

    }

    public CountingFragment(int num){
        // Supply num input as an argument.
        Bundle args = new Bundle();
        args.putInt("num", num);
        this.setArguments(args);
    }

    /**
     * When creating, retrieve this instance's number from its arguments.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mNum = getArguments() != null ? getArguments().getInt("num") : 1;
    }
}
